cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 11)

project( IPPG )
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} xiaobo )

add_executable(
    ippg
    main.cpp
    misc_processing.cpp
    face_detection.cpp
    gui.cpp
    main.hpp
    misc_processing.hpp
    heartrate.hpp
    spo2.hpp
    gui.hpp
    face_detection.hpp
    xiaobo/convn_kernel.cpp
    xiaobo/upsconv1.cpp
    xiaobo/dwt.cpp
    xiaobo/wkeep1.cpp
    xiaobo/idwt.cpp
    xiaobo/xiaoboband.cpp
    xiaobo/rtGetInf.cpp
    xiaobo/xiaoboband_emxAPI.cpp
    xiaobo/rtGetNaN.cpp
    xiaobo/xiaoboband_emxutil.cpp
    xiaobo/rt_nonfinite.cpp
    xiaobo/xiaoboband_initialize.cpp
    xiaobo/thselect.cpp
)
target_link_libraries( ippg ${OpenCV_LIBS} pthread )
